package com.redstar.HappyRefresh.constant;

public interface RedisConstant { // redis常量

    // 用户模型
    String USER_MODEL = "user:model:";

    // 用户模型存活时间，10天
    Long USER_MODEL_TIME = 864000L;

    // 用于兴趣推送时去重，记录videoId，history:video:videoId:userId
    String HISTORY_VIDEO = "history:video:";

    // 用户浏览记录，记录video，user:history:video:userId
    String USER_HISTORY_VIDEO = "user:history:video:";

    // 系统视频库，记录所有公开的视频的id，key为system:stock:标签名，value为视频id祖成的set
    String SYSTEM_STOCK = "system:stock:";

    // 邮箱验证码
    String EMAIL_CODE = "email:code:";

    // 图片验证码
    String PICTURE_CODE = "picture:code:";

    // 热门排行榜
    String HOT_RANK = "hot:rank";

    // 热门视频
    String HOT_VIDEO = "hot:video:";

    // 记录用户浏览过的视频，5天
    Long HISTORY_TIME = 432000L;

    // 邮箱验证码有效时间，5分钟
    Long EMAIL_CODE_TIME = 300L;

    // 用户搜索记录有效时间，5天
    Long USER_SEARCH_HISTORY_TIME = 432000L;

    // 系统分类库，记录分类下的视频
    String SYSTEM_TYPE_STOCK = "system:type:stock:";

    // 发件箱，out:follow:feed:followId
    String OUT_FOLLOW = "out:follow:feed:";

    // 收件箱
    String IN_FOLLOW = "in:follow:feed:";

    // 记录收件箱的视频，5天
    Long IN_FOLLOW_TIME = 432000L;

    // 用户搜索记录
    String USER_SEARCH_HISTORY = "user:search:history:";

    // 用户关注的人
    String USER_FOLLOW = "user:follow:";

    // 用户粉丝
    String USER_FANS = "user:fans:";

    // 发布视频限流
    String VIDEO_LIMIT = "video:limit";

    // 滚动分页偏移量，scroll:page:userId:lastTime
    String SCROLL_PAGE = "scroll:page:";

}
